package com.qing.transfomer.controller;

import com.qing.transfomer.client.QingMappingClient;
import com.qing.transfomer.dto.mapping.CodeMappingResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/mapping")
public class MappingController {

    @Autowired
    private QingMappingClient mappingClient;

    @GetMapping("/codes")
    public CodeMappingResponseDTO getCodes() {
        return mappingClient.getCodes();
    }
}